package com.myreminder.data;

import java.util.Date;
import javax.persistence.Id;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;

@Entity
public class ExpiredReminder implements IsSerializable {
	@Id Long id;
	public Key<User> user;
	public Date datum;
	public String titel;
	public String description;
	public Date sent_date;
	public String sent_to;

	private ExpiredReminder(){}
	
	public ExpiredReminder(long id, Key<User> user, Date datum, String titel, String description, Date sent_date, String sent_to) {
		this.id = id;
		this.user = user;
		this.datum = datum;
		this.titel = titel;
		this.description = description;
		this.sent_date = sent_date;
		this.sent_to = sent_to;
	}

	public ExpiredReminder(Key<User> user, Date datum, String titel, String description, Date sent_date, String sent_to) {
		this.id = null;
		this.user = user;
		this.datum = datum;
		this.titel = titel;
		this.description = description;
		this.sent_date = sent_date;
		this.sent_to = sent_to;
	}

}
